package com.itboye.eweilisten.util.sputil;

import com.itboye.eweilisten.model.SouSuoBean;

import java.util.List;

/**
 * Created by itboye on 2017/4/11.
 */

public class SuoSouUtil {
    /***
     * 第三季
     * @param been
     * @param strings
     * @return
     */
    public static List<String> onTextViewThree(List<SouSuoBean> been, List<String> strings) {
        strings.clear();
        for (int i = 0; i < been.size(); i++) {
            for (int j = 0; j < been.get(i).getUnits().size(); j++) {
                for (int k = 0; k < been.get(i).getUnits().get(j).getChild().size(); k++) {
                    strings.add(been.get(i).getUnits().get(j).getChild().get(k).getUnit_name());
                }
            }
        }
        return strings;
    }

    public static List<String> onTextViewTwo(List<SouSuoBean> been, List<String> strings) {
        strings.clear();
        for (int i = 0; i < been.size(); i++) {
            for (int j = 0; j < been.get(i).getUnits().size(); j++) {
                strings.add(been.get(i).getUnits().get(j).getUnit_name());
            }
        }
        return strings;
    }

    public static List<String> onTextView(List<SouSuoBean> been, List<String> strings) {
        strings.clear();
        for (int i = 0; i < been.size(); i++) {
            strings.add(been.get(i).getBook_name());
        }
        return strings;
    }


}
